<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="https://unpkg.com/vue/dist/vue.js"></script>


</head>
<body>
	
	<div id="app">
		<greeting message='1' :author="author"></greeting>
		<greeting message='2' :author="author"></greeting>
		<greeting message='3' :author="author"></greeting>
	</div>
	
	<template id="greeting-template">
		<div>
	        <h1>Welcome to coligo! {{message}}</h1>
	        <button>login</button>
	        <button>signup</button>
	        <a href="http://coligo.io">Check out the other tutorials! {{author}}</a>
        </div>
    </template>

	<script type="text/javascript">
		
		Vue.component('greeting', {
            template: '#greeting-template',
      //       props: {
		    //     message: {
		    //         type: String,
		    //         required: true
		    //     }
		    // },
            props: ['author','message']
        });

		var vm = new Vue({
            el: '#app',
            data:{
            	author: 'Johnnie Walker'
            }
        });

	</script>
</body>
</html>